package com.nuanshui.heatedloan.baseservice.enums;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zxh on 2017/1/4.
 */
public class FeedMessageTypeUtil {

    public static Boolean isSystemMsg(FeedMessageType type) {
        boolean bFlag = false;
        switch (type) {
            case TO_BE_SHIPPED://代发货
            case ORDER_SHIPPED:// 订单已发货
            case ORDER_SIGNED:// 订单已签收
            case BID_SUCCESS:// 成功竞拍
            case RETURN_TO_ACCOUNT:// 退款到账
            case CROWD_FUND_INTEREST_DEPOSIT:// 众筹本息到账
            case DEPOSIT_TO_ACCOUNT:// 保证金退还
            case BID_OVERPASSED:// 出价被超越
            case INTERST_TO_ACCOUNT:// 收益到账
            case NEW_COMMENT:// 新的评论
                bFlag = true;
                break;
            default:
                break;
        }
        return bFlag;
    }

    public static List<FeedMessageType> getSystemMsgType()
    {
        List<FeedMessageType> list=new ArrayList<FeedMessageType>();
        list.add(FeedMessageType.TO_BE_SHIPPED);
        list.add(FeedMessageType.ORDER_SHIPPED);
        list.add(FeedMessageType.ORDER_SIGNED);
        list.add(FeedMessageType.BID_SUCCESS);
        list.add(FeedMessageType.RETURN_TO_ACCOUNT);
        list.add(FeedMessageType.CROWD_FUND_INTEREST_DEPOSIT);
        list.add(FeedMessageType.DEPOSIT_TO_ACCOUNT);
        list.add(FeedMessageType.BID_OVERPASSED);
        list.add(FeedMessageType.INTERST_TO_ACCOUNT);
        list.add(FeedMessageType.NEW_COMMENT);

        return list;
    }
}
